package ${classPath};

<#assign instance="${domain?substring(0,1)?lower_case}${domain?substring(1)}"/>

import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.Optional;

@Slf4j
public class ${domain}RepositoryTest extends BaseSpringTest {

  @Autowired
  private  ${domain}Repository  repository ;
  
  @BeforeEach
  protected void setUp() throws Exception {
    
  }

  @Test
  public void testFindById() throws Exception {
    Optional<${domain}> optional = repository.findById(10000L);
    ${domain} ${instance} = optional.get();
    log.info("----------++++++++++++ ${instance}:{}", ${instance});
  }
 
}
